package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.BsLotteryHistory;

/**
 * 抽奖记录Mapper接口
 * 
 * @author ruoyi
 * @date 2022-12-25
 */
public interface BsLotteryHistoryMapper 
{
    /**
     * 查询抽奖记录
     * 
     * @param lotteryId 抽奖记录主键
     * @return 抽奖记录
     */
    public BsLotteryHistory selectBsLotteryHistoryByLotteryId(Long lotteryId);

    /**
     * 查询抽奖记录列表
     * 
     * @param bsLotteryHistory 抽奖记录
     * @return 抽奖记录集合
     */
    public List<BsLotteryHistory> selectBsLotteryHistoryList(BsLotteryHistory bsLotteryHistory);

    /**
     * 新增抽奖记录
     * 
     * @param bsLotteryHistory 抽奖记录
     * @return 结果
     */
    public int insertBsLotteryHistory(BsLotteryHistory bsLotteryHistory);

    /**
     * 修改抽奖记录
     * 
     * @param bsLotteryHistory 抽奖记录
     * @return 结果
     */
    public int updateBsLotteryHistory(BsLotteryHistory bsLotteryHistory);

    /**
     * 删除抽奖记录
     * 
     * @param lotteryId 抽奖记录主键
     * @return 结果
     */
    public int deleteBsLotteryHistoryByLotteryId(Long lotteryId);

    /**
     * 批量删除抽奖记录
     * 
     * @param lotteryIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBsLotteryHistoryByLotteryIds(Long[] lotteryIds);
}
